programming4us
           
 
 
Windows Server

Configuring Internet Information Services (part 7)

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
12/10/2010 11:38:48 AM

Practice: Configuring and Managing IIS Settings

In this practice, you will create Web sites and Web applications on Server2.contoso.com and test the backup and recovery process for configuration settings. The steps in the exercise assume that you have already installed the Web Server (IIS) role on this computer, using the default role services. The steps in Exercise 2 require you to complete the steps in Exercise 1 because the new Web site you created will be used for testing the backup and restore processes.

Exercise 1 Create Web Sites and Web Applications

In this exercise, you will use IIS Manager to create a new Web site on the local server. Because the default Web site is already configured to use the standard HTTP and HTTPS ports, you will specify alternate site-binding information. You will also create a new Web application that includes a test Web page to ensure that the server is responding properly.

1.
Log on to Server2.contoso.com with local administrative credentials.

2.
Before you create a new Web site, you will create content folders within the file system. Using Windows Explorer, navigate to the %SystemDrive%\Inetpub\wwwroot path on the computer’s system drive.

3.
Within the Wwwroot folder, create a new folder called Contoso. Within the Contoso folder, create another new folder called WebApp01.

You will use these folders as the physical paths for the Web site and Web application you will create in later steps.

4.
Copy the Iisstart.htm and Welcome.png files from the Wwwroot folder to the Contoso folder. Rename the Iisstart.htm file to Default.htm.

5.
Within the %SystemDrive%\Inetpub\wwwroot\Contoso\WebApp01 folder, create a new text file named Default.htm. Within the text file, enter the following text and then save the file:

<html>
<title>Web Application 01</title>
<body>
<h1>Welcome to Web Application 01.<h1>
</body>
</html>

6.
Launch Internet Information Services (IIS) Manager from the Administrative Tools program group.

7.
If prompted to connect to a server, choose to connect to the local computer.

8.
Expand the local computer object and the Sites container to view a list of existing Web sites.

You will see the default Web site that was installed when the Web Server (IIS) role was added to the computer.

9.
To create a new Web site, right-click the Sites container, and click Add Web Site. This will open the Add Web Site dialog box.

10.
For the name of the new Web site, type Contoso Test Site. Note that, by default, a new application pool of the same name is created and selected automatically. For this practice exercise, you will use this new application pool; however, you can choose an existing pool by clicking the Select button.

11.
For Physical Path, browse to the %SystemDrive%\Inetpub\wwwroot\Contoso folder that you created earlier. Accept the default security setting of Pass-Through Authentication, and then click Test Settings. Note that IIS is able to verify authentication but not authorization because this information will not be known until a user attempts to access the site.

12.
Click Close to return to the Add Web Site dialog box.

13.
In the Binding section, choose the following settings:

  • Protocol: HTTP

  • IP Address: All Unassigned

  • Port: 8000

  • Host Name: (blank)

14.
Verify that the Start Web Site Immediately option is selected, and then click OK to create and start the new Web site automatically.

15.
Click the newly created Contoso Test Site object in the left pane of IIS Manager. Note that the Actions pane provides commands for working with the Web site. To verify that the site is configured properly, click the Browse *:8000 (http) command. This will launch Internet Explorer automatically and connect to http://Server2:8000.contoso.com. You should see the default IIS start page content in the Web browser. When finished, close Internet Explorer.

16.
To create a new Web application, right-click the Contoso Test Site item in IIS Manager and select Add Application.

17.
For the Alias of the application, type TestApp. For the physical path, type or browse to the %SystemDrive%\Inetpub\wwwroot\Contoso\WebApp01 physical path. Notice that the DefaultAppPool option is selected for the application pool.

18.
Click the Select button to change the application pool to Contoso Test Site. Leave all other settings at their defaults, and then click OK to create the new Web application.

19.
In the left pane of IIS Manager, you will see a new Web application called TestApp within the Contoso Test Site object. To verify the content of this application, select the TestApp item, and then click the Content View button at the bottom of the center pane in IIS Manager. You will see the default.htm file that you created earlier.

20.
To test the Web application, click the Browse button in the Manage Application section of the Actions pane. This will launch Internet Explorer and connect to http://Server2:8000.contoso.com/TestApp/default.htm. The title bar for the Web browser will read Web Application 01, and the text will display the welcome message you specified in the HTML file. When finished, close Internet Explorer.

21.
Close IIS Manager.

Exercise 2 Back Up and Restore the IIS Configuration

In this exercise, you will perform the steps required to make a backup of the IIS configuration, using the AppCmd.exe utility. You will then delete the Contoso Web Site object that you created in Exercise 1, using IIS Manager. To restore the Web site configuration, you will again use the AppCmd.exe utility.

1.
Log on to Server1.contoso.com with local administrative credentials.

2.
Open a new command prompt window by clicking Start and then Run. Type cmd.

3.
Change the current working directory to the location of AppCmd.exe by typing cd %SystemRoot%\Windows\System32\Inetsrv.

4.
To create a new backup of the IIS configuration, type the following command at the command prompt:

AppCmd add backup "IISBackup01"

5.
To verify that the backup has been created, type the following command:

AppCmd list backups

6.
You should see the IISBackup01 item in the list. (If you have made other backups of the configuration, they will also appear in the list.)

7.
Leave the command prompt window open, and then launch the Internet Information Services (IIS) Manager console.

In the next step, you will remove a Web site from the configuration of IIS.

8.
Connect to the local server, and expand the Sites object. Right-click the Contoso Test Site object, and select Remove. When prompted, select Yes to confirm the removal. Note that the site and its Web application have been deleted.

9.
Return to the command prompt window, and type the following command to restore the IIS configuration from the backup you created earlier:

AppCmd restore backup "IISBackup01"

10.
When the command finishes, close the command prompt, and return to the IIS Manager console.

11.
To refresh the display, right-click the Sites object, and choose Refresh. You will now see the Contoso Test Site object. Note that removing the Web site did not delete any of the content that was stored in the file system, so the site should be available for use. In some cases, it might be necessary to close the IIS Manager console and reload it after the restore process has been performed.

12.
When you are finished, close IIS Manager.

Other -----------------
- Windows Server 2008 : Installing the Web Server Role (part 9) - Using Windows System Resource Manager
- Windows Server 2008 : Installing the Web Server Role (part 8)
- Windows Server 2008 : Installing the Web Server Role (part 7)
- Windows Server 2008 : Installing the Web Server Role (part 6)
- Windows Server 2008 : Installing the Web Server Role (part 5)
- Windows Server 2008 : Installing the Web Server Role (part 4)
- Windows Server 2008 : Installing the Web Server Role (part 3)
- Windows Server 2008 : Installing the Web Server Role (part 2)
- Windows Server 2008 : Installing the Web Server Role (part 1)
- Windows Server 2008 : Recovering Role Services and Features (part 4)
- Windows Server 2008 : Recovering Role Services and Features (part 3)
- Windows Server 2008 : Recovering Role Services and Features (part 2) - System State Recovery for Domain Controllers
- Windows Server 2008 : Recovering Role Services and Features (part 1)
- Windows Server Backup Volume Recovery (part 3) - System Volume Recovery Using Network Shared Folder Backups
- Windows Server Backup Volume Recovery (part 2) - Windows Server 2008 R2 System Volume Recovery
- Windows Server Backup Volume Recovery (part 1) - Windows Server 2008 R2 Data Volume Recovery
- Managing and Accessing Windows Server Backup Media
- Windwos Server 2008 : Recovering from a Server or System Failure (part 3)
- Windwos Server 2008 : Recovering from a Server or System Failure (part 2) - Enabling Auditing for NTFS Folders
- Windwos Server 2008 : Recovering from a Server or System Failure (part 1)
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us